.class public Lcom/xingbook/park/activity/FCViewAct;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/View$OnTouchListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;
.implements Lcom/xingbook/park/ui/e;


# static fields
.field private static g:Lcom/xingbook/park/activity/FCViewAct;


# instance fields
.field a:Lcom/xingbook/ui/b/n;

.field b:Lcom/xingbook/c/a;

.field private c:Lcom/xingbook/c/n;

.field private d:Lcom/xingbook/d/a;

.field private e:Lcom/xingbook/park/view/PaintThumbView;

.field private f:[Lcom/xingbook/park/a/n;

.field private h:Ljava/lang/String;

.field private i:J

.field private l:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lcom/xingbook/park/activity/FCViewAct;->g:Lcom/xingbook/park/activity/FCViewAct;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/park/activity/FCViewAct;->l:Z

    return-void
.end method

.method public static a()Lcom/xingbook/park/activity/FCViewAct;
    .locals 1

    sget-object v0, Lcom/xingbook/park/activity/FCViewAct;->g:Lcom/xingbook/park/activity/FCViewAct;

    return-object v0
.end method

.method private a(Landroid/widget/LinearLayout;)V
    .locals 13

    const/4 v12, 0x0

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->q()Lcn/a/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/a;->j()[Lcn/a/a/d;

    move-result-object v5

    array-length v6, v5

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->u()Lcom/xingbook/b/b;

    move-result-object v0

    check-cast v0, Lcom/xingbook/b/e;

    new-array v1, v6, [Lcom/xingbook/park/a/n;

    iput-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->f:[Lcom/xingbook/park/a/n;

    move v3, v4

    :goto_0
    if-lt v3, v6, :cond_0

    return-void

    :cond_0
    aget-object v1, v5, v3

    invoke-virtual {v1}, Lcn/a/a/d;->b()[Lcn/a/a/c/a;

    move-result-object v7

    const v1, 0x7f030018

    invoke-static {p0, v1, v12}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v8

    const v1, 0x7f0a00ca

    invoke-virtual {v8, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    const v2, 0x7f0a00c9

    invoke-virtual {v8, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    new-instance v9, Landroid/widget/ListView;

    invoke-direct {v9, p0}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v9, v4}, Landroid/widget/ListView;->setFadingEdgeLength(I)V

    invoke-virtual {v9, v4}, Landroid/widget/ListView;->setCacheColorHint(I)V

    invoke-virtual {v9, v4}, Landroid/widget/ListView;->setVerticalScrollBarEnabled(Z)V

    invoke-virtual {v9, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->getResources()Landroid/content/res/Resources;

    move-result-object v10

    const v11, 0x7f020003

    invoke-virtual {v10, v11}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v10

    invoke-virtual {v9, v10}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    invoke-virtual {v9, v3}, Landroid/widget/ListView;->setId(I)V

    aget-object v10, v5, v3

    invoke-virtual {v10}, Lcn/a/a/d;->a()I

    move-result v10

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v10

    invoke-virtual {v9, v10}, Landroid/widget/ListView;->setTag(Ljava/lang/Object;)V

    invoke-virtual {v9, v8, v12, v4}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;Ljava/lang/Object;Z)V

    aget-object v8, v5, v3

    invoke-virtual {v8}, Lcn/a/a/d;->a()I

    move-result v8

    invoke-static {v8}, Lcom/xingbook/park/d/i;->b(I)I

    move-result v8

    invoke-virtual {v1, v8}, Landroid/widget/ImageView;->setImageResource(I)V

    aget-object v1, v5, v3

    invoke-virtual {v1}, Lcn/a/a/d;->a()I

    move-result v1

    invoke-static {v1}, Lcom/xingbook/park/d/i;->a(I)I

    move-result v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->f:[Lcom/xingbook/park/a/n;

    new-instance v2, Lcom/xingbook/park/a/n;

    const v8, 0x7f030017

    invoke-direct {v2, p0, v8, v7}, Lcom/xingbook/park/a/n;-><init>(Landroid/content/Context;I[Lcn/a/a/c/a;)V

    aput-object v2, v1, v3

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->f:[Lcom/xingbook/park/a/n;

    aget-object v1, v1, v3

    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/a/n;->a(Lcom/xingbook/b/e;I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->f:[Lcom/xingbook/park/a/n;

    aget-object v1, v1, v3

    invoke-virtual {v9, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->f:[Lcom/xingbook/park/a/n;

    aget-object v1, v1, v3

    invoke-virtual {v1, v4, v12, v9}, Lcom/xingbook/park/a/n;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v4, v4}, Landroid/view/View;->measure(II)V

    invoke-virtual {v1}, Landroid/view/View;->getMeasuredHeight()I

    move-result v1

    invoke-virtual {v9}, Landroid/widget/ListView;->getDividerHeight()I

    move-result v2

    add-int/2addr v1, v2

    iget-object v2, p0, Lcom/xingbook/park/activity/FCViewAct;->f:[Lcom/xingbook/park/a/n;

    aget-object v2, v2, v3

    invoke-virtual {v2}, Lcom/xingbook/park/a/n;->getCount()I

    move-result v2

    new-instance v7, Landroid/widget/RelativeLayout$LayoutParams;

    const/16 v8, 0xc8

    mul-int/2addr v1, v2

    add-int/lit8 v1, v1, 0x2c

    add-int/lit8 v1, v1, 0x2

    invoke-direct {v7, v8, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p1, v9, v7}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    add-int/lit8 v1, v3, 0x1

    move v3, v1

    goto/16 :goto_0
.end method

.method private g()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->s()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->h:Ljava/lang/String;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/xingbook/park/activity/FCViewAct;->i:J

    return-void
.end method

.method private h()V
    .locals 6

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->h:Ljava/lang/String;

    if-eqz v0, :cond_0

    const/16 v0, 0x30

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->h:Ljava/lang/String;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iget-wide v4, p0, Lcom/xingbook/park/activity/FCViewAct;->i:J

    sub-long/2addr v2, v4

    long-to-int v2, v2

    iget-boolean v3, p0, Lcom/xingbook/park/activity/FCViewAct;->l:Z

    invoke-static {v0, v1, v2, v3}, Lcom/xingbook/park/d/j;->a(ILjava/lang/String;IZ)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->h:Ljava/lang/String;

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/xingbook/park/activity/FCViewAct;->i:J

    :cond_0
    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/park/activity/ReadingAct;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "com.xingbook.park.PAGE_ID"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->b()Lcom/xingbook/ui/b/n;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/ui/b/n;->h()V

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/FCViewAct;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f04001c

    const v1, 0x7f040020

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/FCViewAct;->overridePendingTransition(II)V

    return-void
.end method

.method public varargs a(I[Ljava/lang/Object;)V
    .locals 6

    const/4 v2, 0x2

    const v5, 0x7f040020

    const v4, 0x7f04001c

    const/4 v1, 0x1

    const/4 v3, 0x0

    packed-switch p1, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    aget-object v0, p2, v3

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/xingbook/park/activity/ReadingAct;

    invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "com.xingbook.park.PAGE_ID"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->h()V

    invoke-virtual {p0, v1, v3}, Lcom/xingbook/park/activity/FCViewAct;->startActivityForResult(Landroid/content/Intent;I)V

    invoke-virtual {p0, v4, v5}, Lcom/xingbook/park/activity/FCViewAct;->overridePendingTransition(II)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->a(Z)V

    goto :goto_0

    :pswitch_3
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0, v3}, Lcom/xingbook/d/a;->a(Z)V

    goto :goto_0

    :pswitch_4
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0, v3}, Lcom/xingbook/d/a;->i(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->c(Z)V

    goto :goto_0

    :pswitch_5
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0, v3}, Lcom/xingbook/d/a;->i(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0, v3}, Lcom/xingbook/d/a;->c(Z)V

    goto :goto_0

    :pswitch_6
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->i(I)V

    goto :goto_0

    :pswitch_7
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0, v2}, Lcom/xingbook/d/a;->i(I)V

    goto :goto_0

    :pswitch_8
    aget-object v0, p2, v3

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v1, v0}, Lcom/xingbook/d/a;->d(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->h()V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->i()V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0, v3}, Lcom/xingbook/ui/b/n;->a(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->f()V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->g()V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->postInvalidate()V

    goto :goto_0

    :pswitch_9
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    sget v1, Lcn/a/a/b;->a:I

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->k(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->t()I

    move-result v0

    if-ne v0, v2, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->q()Lcn/a/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/a;->h()Lcn/a/a/i;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/i;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/park/activity/SleepAct;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v1}, Lcom/xingbook/ui/b/n;->h()V

    invoke-virtual {p0, v0, v3}, Lcom/xingbook/park/activity/FCViewAct;->startActivityForResult(Landroid/content/Intent;I)V

    invoke-virtual {p0, v4, v5}, Lcom/xingbook/park/activity/FCViewAct;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_0
    const v0, 0x7f0800d3

    invoke-static {p0, v0, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    :cond_1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/park/activity/ReadingAct;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "com.xingbook.park.PAGE_ID"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v1}, Lcom/xingbook/ui/b/n;->h()V

    invoke-virtual {p0, v0, v3}, Lcom/xingbook/park/activity/FCViewAct;->startActivityForResult(Landroid/content/Intent;I)V

    invoke-virtual {p0, v4, v5}, Lcom/xingbook/park/activity/FCViewAct;->overridePendingTransition(II)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0xb
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_8
        :pswitch_0
        :pswitch_9
    .end packed-switch
.end method

.method public a(Z)V
    .locals 7

    if-eqz p1, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v1}, Lcom/xingbook/d/a;->q()Lcn/a/a/a;

    move-result-object v1

    invoke-virtual {v1}, Lcn/a/a/a;->h()Lcn/a/a/i;

    move-result-object v1

    invoke-virtual {v1}, Lcn/a/a/i;->c()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->f(I)Lcn/a/a/a/d;

    move-result-object v4

    if-eqz v4, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->x()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v0

    invoke-virtual {v4}, Lcn/a/a/a/d;->a()Ljava/io/FileDescriptor;

    move-result-object v1

    invoke-virtual {v4}, Lcn/a/a/a/d;->c()J

    move-result-wide v2

    invoke-virtual {v4}, Lcn/a/a/a/d;->d()J

    move-result-wide v4

    const/4 v6, 0x1

    invoke-virtual/range {v0 .. v6}, Lcom/xingbook/c/a;->a(Ljava/io/FileDescriptor;JJZ)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/a;->b()V

    goto :goto_0
.end method

.method public b()Lcom/xingbook/ui/b/n;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    return-object v0
.end method

.method public c()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->h()V

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/FCViewAct;->a(Z)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->finish()V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0, p0}, Lcom/xingbook/d/a;->a(Landroid/content/Context;)V

    const v0, 0x7f040008

    const v1, 0x7f04000a

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/FCViewAct;->overridePendingTransition(II)V

    return-void
.end method

.method public d()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->f()V

    return-void
.end method

.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u661f\u5b9d\u4e66-\u9605\u8bfb\u5c01\u9762"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public f()V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/activity/FCViewAct;->l:Z

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 3

    const/4 v1, 0x0

    invoke-super {p0, p1, p2, p3}, Lcom/xingbook/park/activity/BaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->f:[Lcom/xingbook/park/a/n;

    if-eqz v0, :cond_0

    move v0, v1

    :goto_0
    iget-object v2, p0, Lcom/xingbook/park/activity/FCViewAct;->f:[Lcom/xingbook/park/a/n;

    array-length v2, v2

    if-lt v0, v2, :cond_2

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->g()V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    sget v2, Lcn/a/a/b;->b:I

    invoke-virtual {v0, v2}, Lcom/xingbook/d/a;->k(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->l(I)V

    const/16 v0, 0x64

    if-ne p1, v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->e:Lcom/xingbook/park/view/PaintThumbView;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->e:Lcom/xingbook/park/view/PaintThumbView;

    invoke-virtual {v0, p2}, Lcom/xingbook/park/view/PaintThumbView;->a(I)V

    :cond_1
    return-void

    :cond_2
    iget-object v2, p0, Lcom/xingbook/park/activity/FCViewAct;->f:[Lcom/xingbook/park/a/n;

    aget-object v2, v2, v0

    invoke-virtual {v2}, Lcom/xingbook/park/a/n;->notifyDataSetChanged()V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->b:Lcom/xingbook/c/a;

    invoke-virtual {v0, v2}, Lcom/xingbook/c/a;->a(I)V

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->b:Lcom/xingbook/c/a;

    invoke-virtual {v0, v2}, Lcom/xingbook/c/a;->a(I)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->c()V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    sget v1, Lcn/a/a/b;->a:I

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->k(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->h()V

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/park/activity/ReadingAct;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0, v2}, Lcom/xingbook/park/activity/FCViewAct;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f04001c

    const v1, 0x7f040020

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/FCViewAct;->overridePendingTransition(II)V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 14
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const/4 v13, -0x1

    const/4 v12, 0x1

    const/16 v11, 0xa

    const/4 v10, -0x2

    const/4 v2, 0x0

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "com.xingbook.park.FORCE_BOOKMARK"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->c:Lcom/xingbook/c/n;

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->c:Lcom/xingbook/c/n;

    invoke-virtual {v0}, Lcom/xingbook/c/n;->h()Lcom/xingbook/d/a;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->q()Lcn/a/a/a;

    move-result-object v4

    invoke-virtual {v4}, Lcn/a/a/a;->b()Lcn/a/a/c/a;

    move-result-object v0

    check-cast v0, Lcn/a/a/c/g;

    if-nez v0, :cond_0

    const v0, 0x7f080156

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/FCViewAct;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->finish()V

    :goto_0
    return-void

    :cond_0
    sput-object p0, Lcom/xingbook/park/activity/FCViewAct;->g:Lcom/xingbook/park/activity/FCViewAct;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->getWindow()Landroid/view/Window;

    move-result-object v1

    const/16 v5, 0x80

    const/16 v6, 0x80

    invoke-virtual {v1, v5, v6}, Landroid/view/Window;->setFlags(II)V

    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->b:Lcom/xingbook/c/a;

    new-instance v5, Landroid/widget/RelativeLayout;

    invoke-direct {v5, p0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcn/a/a/c/g;->j()I

    move-result v1

    invoke-virtual {v4}, Lcn/a/a/a;->h()Lcn/a/a/i;

    move-result-object v6

    invoke-virtual {v6}, Lcn/a/a/i;->a()I

    move-result v6

    invoke-static {p0, v1, v6}, Lcom/xingbook/c/e;->a(Landroid/app/Activity;II)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v13, v13}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    new-instance v6, Lcom/xingbook/ui/b/n;

    iget-object v7, p0, Lcom/xingbook/park/activity/FCViewAct;->c:Lcom/xingbook/c/n;

    const/4 v8, 0x0

    invoke-direct {v6, p0, v0, v7, v8}, Lcom/xingbook/ui/b/n;-><init>(Landroid/app/Activity;Lcn/a/a/c/g;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    iput-object v6, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/b/n;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/b/n;->a(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->f()V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v5, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    invoke-virtual {v4}, Lcn/a/a/a;->d()Lcn/a/a/c;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/c;->a()I

    move-result v6

    invoke-virtual {v4}, Lcn/a/a/a;->h()Lcn/a/a/i;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/i;->i()Z

    move-result v0

    if-nez v0, :cond_4

    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x2

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setId(I)V

    invoke-virtual {v1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f02012c

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v10, v10}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v11}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/16 v7, 0x9

    invoke-virtual {v0, v7}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v0, v11, v11, v2, v2}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    invoke-virtual {v5, v1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    if-eq v6, v12, :cond_1

    const/4 v0, 0x3

    if-ne v6, v0, :cond_3

    :cond_1
    new-instance v0, Lcom/xingbook/park/view/g;

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    iget-object v4, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    iget-object v7, p0, Lcom/xingbook/park/activity/FCViewAct;->b:Lcom/xingbook/c/a;

    invoke-direct {v0, p0, v1, v4, v7}, Lcom/xingbook/park/view/g;-><init>(Landroid/content/Context;Lcom/xingbook/d/a;Lcom/xingbook/ui/b/n;Lcom/xingbook/c/a;)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v13, v10}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v4, 0xc

    invoke-virtual {v1, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v5, v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :goto_1
    invoke-virtual {p0, v5}, Lcom/xingbook/park/activity/FCViewAct;->setContentView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->g()V

    invoke-virtual {p0, v12}, Lcom/xingbook/park/activity/FCViewAct;->a(Z)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    sget v1, Lcn/a/a/b;->b:I

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->k(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0, v2}, Lcom/xingbook/d/a;->l(I)V

    if-eqz v3, :cond_6

    const/16 v0, 0x2c

    invoke-virtual {v3, v0}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v0

    if-le v0, v13, :cond_5

    add-int/lit8 v0, v0, 0x1

    invoke-virtual {v3, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v2}, Lcn/a/a/d/j;->a(Ljava/lang/String;I)I

    move-result v0

    :goto_2
    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/FCViewAct;->a(I)V

    :cond_2
    :goto_3
    invoke-direct {p0}, Lcom/xingbook/park/activity/FCViewAct;->g()V

    goto/16 :goto_0

    :cond_3
    new-instance v7, Landroid/widget/ImageView;

    invoke-direct {v7, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v7, v12}, Landroid/widget/ImageView;->setId(I)V

    invoke-virtual {v7, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f020135

    invoke-virtual {v7, v0}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    new-instance v8, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v8, v10, v10}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v0, 0xc

    invoke-virtual {v8, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/16 v0, 0xb

    invoke-virtual {v8, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v8, v2, v2, v11, v11}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    packed-switch v6, :pswitch_data_0

    :goto_4
    :pswitch_0
    invoke-virtual {v5, v7, v8}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_1

    :pswitch_1
    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    const v1, 0x7f020111

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setId(I)V

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v10, v10}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v4, 0xd

    invoke-virtual {v1, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v5, v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_4

    :pswitch_2
    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    const v1, 0x7f020111

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setId(I)V

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v10, v10}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v4, 0xd

    invoke-virtual {v1, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v5, v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_4

    :pswitch_3
    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    const v1, 0x7f020128

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setId(I)V

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v10, v10}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v4, 0xd

    invoke-virtual {v1, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v5, v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_4

    :pswitch_4
    const v0, 0x7f030016

    const/4 v4, 0x0

    invoke-static {p0, v0, v4}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    const v0, 0x7f0a00c7

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    new-instance v9, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v9, v10, v10}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/4 v10, 0x3

    invoke-virtual {v1}, Landroid/widget/ImageView;->getId()I

    move-result v1

    invoke-virtual {v9, v10, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/16 v1, 0x9

    invoke-virtual {v9, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/16 v1, 0x1e

    const/16 v10, 0x14

    invoke-virtual {v9, v1, v11, v2, v10}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    invoke-direct {p0, v0}, Lcom/xingbook/park/activity/FCViewAct;->a(Landroid/widget/LinearLayout;)V

    invoke-virtual {v5, v4, v9}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_4

    :pswitch_5
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    sget v1, Lcn/a/a/b;->a:I

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->k(I)V

    invoke-virtual {v8, v2, v11, v11, v2}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    const v0, 0x7f030031

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v9

    const v0, 0x7f0a01e0

    invoke-virtual {v9, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/HorizontalScrollView;

    const v1, 0x7f0a01e1

    invoke-virtual {v9, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/xingbook/park/view/PaintThumbView;

    iput-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->e:Lcom/xingbook/park/view/PaintThumbView;

    new-instance v1, Lcom/xingbook/park/a/u;

    invoke-virtual {v4}, Lcn/a/a/a;->f()[Lcn/a/a/c/a;

    move-result-object v4

    invoke-direct {v1, p0, v4}, Lcom/xingbook/park/a/u;-><init>(Landroid/content/Context;[Lcn/a/a/c/a;)V

    iget-object v4, p0, Lcom/xingbook/park/activity/FCViewAct;->e:Lcom/xingbook/park/view/PaintThumbView;

    invoke-virtual {v4, v1, v0}, Lcom/xingbook/park/view/PaintThumbView;->a(Landroid/widget/Adapter;Landroid/widget/HorizontalScrollView;)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v10, v10}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v1, 0xc

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v0, v2, v2, v2, v11}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    invoke-virtual {v5, v9, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_4

    :pswitch_6
    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    const v1, 0x7f020111

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setId(I)V

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v10, v10}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v4, 0xd

    invoke-virtual {v1, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v5, v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_4

    :cond_4
    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setId(I)V

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v1, 0x7f020129

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v7, 0x7f0b0007

    invoke-virtual {v4, v7}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v4

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->getResources()Landroid/content/res/Resources;

    move-result-object v7

    const v8, 0x7f0b0008

    invoke-virtual {v7, v8}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v7

    invoke-direct {v1, v4, v7}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v11}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/16 v4, 0x9

    invoke-virtual {v1, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v7, 0x7f0b000a

    invoke-virtual {v4, v7}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v4

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->getResources()Landroid/content/res/Resources;

    move-result-object v7

    const v8, 0x7f0b0009

    invoke-virtual {v7, v8}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v7

    invoke-virtual {v1, v4, v7, v2, v2}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    invoke-virtual {v5, v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_1

    :cond_5
    move v0, v2

    goto/16 :goto_2

    :cond_6
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->u()Lcom/xingbook/b/b;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->u()Lcom/xingbook/b/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/b/b;->a()Z

    move-result v0

    if-eqz v0, :cond_2

    if-eq v6, v12, :cond_7

    const/4 v0, 0x5

    if-eq v6, v0, :cond_7

    const/4 v0, 0x3

    if-ne v6, v0, :cond_2

    :cond_7
    new-instance v0, Lcom/xingbook/park/ui/d;

    const v1, 0x7f090007

    invoke-direct {v0, p0, v1}, Lcom/xingbook/park/ui/d;-><init>(Landroid/app/Activity;I)V

    invoke-virtual {v0, v12}, Lcom/xingbook/park/ui/d;->setCanceledOnTouchOutside(Z)V

    invoke-virtual {v0}, Lcom/xingbook/park/ui/d;->show()V

    goto/16 :goto_3

    nop

    :pswitch_data_0
    .packed-switch 0x2
        :pswitch_6
        :pswitch_0
        :pswitch_1
        :pswitch_3
        :pswitch_5
        :pswitch_2
        :pswitch_4
    .end packed-switch
.end method

.method protected onDestroy()V
    .locals 1

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->i()V

    invoke-static {}, Lcom/xingbook/c/k;->b()V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->a()V

    const/4 v0, 0x0

    sput-object v0, Lcom/xingbook/park/activity/FCViewAct;->g:Lcom/xingbook/park/activity/FCViewAct;
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    invoke-direct {p0}, Lcom/xingbook/park/activity/FCViewAct;->h()V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onDestroy()V

    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->q()Lcn/a/a/a;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->f:[Lcom/xingbook/park/a/n;

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getId()I

    move-result v2

    aget-object v1, v1, v2

    invoke-virtual {v1}, Lcom/xingbook/park/a/n;->a()[Lcn/a/a/c/a;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/a/a/a;->a([Lcn/a/a/c/a;)V

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-class v1, Lcom/xingbook/park/activity/ReadingAct;

    invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    const-string v1, "com.xingbook.park.PAGE_ID"

    add-int/lit8 v2, p3, -0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v1}, Lcom/xingbook/ui/b/n;->h()V

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/FCViewAct;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f04001c

    const v1, 0x7f040020

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/FCViewAct;->overridePendingTransition(II)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->u()Lcom/xingbook/b/b;

    move-result-object v0

    check-cast v0, Lcom/xingbook/b/e;

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getId()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/b/e;->a(I)V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->c()V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/a;->c()V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->d()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 2

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/a;->d()V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->e()V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->c:Lcom/xingbook/c/n;

    invoke-virtual {v1}, Lcom/xingbook/c/n;->g()Lcom/xingbook/park/d/e;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->a(Lcom/xingbook/d/b;)V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/FCViewAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method

.method protected onStart()V
    .locals 0

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onStart()V

    return-void
.end method

.method protected onStop()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->d:Lcom/xingbook/d/a;

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->c:Lcom/xingbook/c/n;

    invoke-virtual {v1}, Lcom/xingbook/c/n;->g()Lcom/xingbook/park/d/e;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->a(Lcom/xingbook/d/b;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/n;->i()V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onStop()V

    return-void
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 3

    const/16 v2, 0x64

    const/4 v0, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v1

    if-nez v1, :cond_0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    check-cast p1, Landroid/widget/ImageView;

    invoke-static {p1, v2}, Lcom/xingbook/c/e;->a(Landroid/widget/ImageView;I)V

    :goto_0
    const/4 v0, 0x1

    :cond_0
    return v0

    :pswitch_0
    check-cast p1, Landroid/widget/ImageView;

    invoke-static {p1, v2}, Lcom/xingbook/c/e;->a(Landroid/widget/ImageView;I)V

    goto :goto_0

    :pswitch_1
    check-cast p1, Landroid/widget/ImageView;

    const/16 v1, 0xff

    invoke-static {p1, v1}, Lcom/xingbook/c/e;->a(Landroid/widget/ImageView;I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->b:Lcom/xingbook/c/a;

    invoke-virtual {v1, v0}, Lcom/xingbook/c/a;->a(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v1}, Lcom/xingbook/ui/b/n;->h()V

    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/xingbook/park/activity/ReadingAct;

    invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v1, v0}, Lcom/xingbook/park/activity/FCViewAct;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f04001c

    const v1, 0x7f040020

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/FCViewAct;->overridePendingTransition(II)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 5

    const/4 v1, 0x0

    const/4 v0, 0x1

    iget-object v2, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v2}, Lcom/xingbook/ui/b/n;->getActivityTouchListener()Lcom/xingbook/ui/overclass/a;

    move-result-object v2

    if-eqz v2, :cond_3

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v3

    if-ne v3, v0, :cond_1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v1

    float-to-int v1, v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v3

    float-to-int v3, v3

    invoke-interface {v2, v1, v3, v0}, Lcom/xingbook/ui/overclass/a;->a(IIZ)V

    :cond_0
    :goto_0
    return v0

    :cond_1
    invoke-interface {v2, v1}, Lcom/xingbook/ui/overclass/a;->setNoMove(Z)V

    invoke-interface {v2}, Lcom/xingbook/ui/overclass/a;->getMovingState()Z

    move-result v3

    if-nez v3, :cond_2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v3

    float-to-int v3, v3

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v4

    float-to-int v4, v4

    invoke-interface {v2, v3, v4}, Lcom/xingbook/ui/overclass/a;->c(II)V

    :cond_2
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v3

    float-to-int v3, v3

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v4

    float-to-int v4, v4

    invoke-interface {v2, v3, v4}, Lcom/xingbook/ui/overclass/a;->b(II)V

    :cond_3
    iget-object v2, p0, Lcom/xingbook/park/activity/FCViewAct;->a:Lcom/xingbook/ui/b/n;

    invoke-virtual {v2}, Lcom/xingbook/ui/b/n;->k()Z

    move-result v2

    if-nez v2, :cond_0

    move v0, v1

    goto :goto_0
.end method
